<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

/**
* @name CI Smarty
* @copyright Dwayne Charrington, 2011.
* @author Dwayne Charrington and other Github contributors
* @license (DWYWALAYAM) 
           Do What You Want As Long As You Attribute Me Licence
* @version 1.2
* @link http://ilikekillnerds.com
*/

class Smartytest extends CI_Controller {

    public function __construct()
    {
        parent::__construct();
        
        // Ideally you would autoload the parser
        $this->load->library('parser');
    }

    public function index($contentPage="login",$template="default_template",$theme="default_theme")
    {    
        // Some example data
        
        $data['header']['template']=$template;
		$data['header']['theme']=$theme;
		
		// $this->load->helper('directory');
		// $map = directory_map('\\default_theme\\js\\jquery\\');
        // print_r($map);exit;
        // Load the template from the views directory
		
		
        $this->parser->parse($template."/header.tpl", $data['header']);
		$this->parser->parse($template."/".$contentPage.".tpl", $data);
		$this->parser->parse($template."/footer.tpl", $data);
    }
	

	
	}
    
    

